#ifndef STMTTABLE_H
#define STMTTABLE_H

#include "type.h"
#include <iostream>
#include <vector>
using namespace std;

class StmtTableRow {
public:
	StmtTableRow(TYPE type,int stmtNum) {
		this->type = type;
		this->stmtNum = stmtNum;
	}
	TYPE getType() {
		return type;
	}
	int getStmtNum() {
		return stmtNum;
	}
	void setType(TYPE type) {
		this->type = type;
	}
	void setStmtNum(int stmtNum) {
		this->stmtNum = stmtNum;
	}
private:
	TYPE type;
	int stmtNum;
};

class StmtTable {
public:
	static TYPE getType(int);
	static vector<int> getStmtNum(TYPE);
	static void insertData(TYPE, int);
	static int getTableSize();
	static vector<int> getStmtList();
private:
	static vector<StmtTableRow> table;
};

#endif